package com.netcracker.studportal.server.main_test;

import java.text.SimpleDateFormat;
import java.util.Date;

import org.json.simple.JSONObject;

import com.netcracker.studportal.server.facade.FacadeAdmin;
import com.netcracker.studportal.server.model.Exam;
import com.netcracker.studportal.server.model.Professor;
import com.netcracker.studportal.server.model.Subject;

public class MainFacadeExam {
	public static void main(String args[]){
		FacadeAdmin fa= new  FacadeAdmin();
		try{
			
		JSONObject obj = new JSONObject();
			
		obj.put("exam_id","8");
		obj.put("subject_id", "1");
		obj.put("exam_date", "11.11.11 11:11");
		obj.put("type", "8");
		obj.put("prof_id", "5");
		
	    String str=fa.deleteFieldExam(obj.toString());
        //String str=fa.updateFieldExam(obj.toString());
        
		//String str=fa.addNewExam(obj.toString());
		System.out.println("str "+str);
		
		//String all_exam=fa.getAllExam();		
		//System.out.println(all_exam);	
		
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
